package com.clw.classfile.attribute.info;

import com.clw.classfile.BytesReader;

/**
 * Created by chengliwei on 2018/11/16.
 */
public class ConstantValue extends AttributeInfo {

    // 作用是通知虚拟机自动为静态变量赋值。只有被static关键字修饰的变量才可以使用这项属性
    private short constantValueIndex;

    public ConstantValue(BytesReader reader) {
        super(reader.readInt());
        this.constantValueIndex = reader.readShort();
    }
}
